
hosts="zettakit01 zettakit02 zettakit03 zettakit04 zettakit05 zettakit06"

for host in $hosts
do
	echo "ssh $host echo 60 >  /proc/sys/vm/dirty_background_ratio"
	ssh $host echo "60 >  /proc/sys/vm/dirty_background_ratio"
    
	echo "ssh $host echo 80 >  /proc/sys/vm/dirty_ratio"
	ssh $host "echo 80 >  /proc/sys/vm/dirty_ratio"
    
	#set readahead
    echo "ssh $host echo 8192 > /sys/block/sda/queue/read_ahead_kb"
	ssh $host "echo 8192 > /sys/block/sda/queue/read_ahead_kb"
        
	#close swapiness
    ssh $host "echo \"vm.swappiness = 0\" | tee -a /etc/sysctl.conf" 

        

    #echo "deadline" > /sys/block/sd[x]/queue/scheduler    
    ssh $host "echo \"noop\" > /sys/block/sdl/queue/scheduler"
    ssh $host "echo \"noop\" > /sys/block/sdm/queue/scheduler"


done
